package inter;

import lexer.*;

public class Node {
    int lexline = 0;
    public Node() {
	lexline = Lexer.lineno;
    }
    void error(String s) {
	throw new Error("near line "+lexline+": "+s);
    }
    static int labels = 0;
    public int newlabel() { return ++labels; }
    public void emitlabel(int i) {
	System.out.println("L"+i+":");
    }
    public void emit(String s) {
	System.out.println("\t"+s);
    }
}
